<?php
namespace index;
use \Workerman\Worker;
//m('workerman/Autoloader.php');
$http_worker = new \Worker("http://0.0.0.0:8899");
$http_worker->count = 4;
$http_worker->onMessage = function($connection, $data)
{
    // 向浏览器发送hello world
    $connection->send('hello world');
};
\Worker::runAll();